package com.hongxun.design.activitys;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.hongxun.design.R;
import com.hongxun.design.interfaces.HeadSecond;
import com.hongxun.design.listeners.ListenerSet;
import com.hongxun.design.mytools.IconSourse;
import com.hongxun.design.mytools.MString;
import com.hongxun.design.ui.headandbottonpanel.HeadSecondControlPanel;
import com.hongxun.design.utils.DataUtil;

/**
 * Created by zerdoor_pc on 2016/6/24.
 * 典设库
 */
public class CodeLibraryActivity extends BaseActivity implements HeadSecond {
    String value,TITLE;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_codelibrary);
        findBar();
        findView();
    }

    @Override
    public void findBar() {
        getIntentData();
        HeadSecondControlPanel headsecond_layout = (HeadSecondControlPanel) findViewById(R.id.codelibrary_layout);
        headsecond_layout.initHeadPanel(DataUtil.getsecondbean(MString.search, View.GONE, R.color.bar_right, ListenerSet.back, TITLE+"不符合", R.color.title, View.VISIBLE, IconSourse.BACK + "", View.VISIBLE));
    }

    private void getIntentData() {
        value = getIntent().getExtras().getString(MString.CODE);
        TITLE = getIntent().getExtras().getString(MString.TITLE);
    }

    @Override
    protected void onResume() {
        super.onResume();
    }

    @Override
    protected void findView() {
        super.findView();
        TextView self_value = (TextView) findViewById(R.id.self_value);
        self_value.setText(value);
    }
}
